package top.yehot.kettle.boot.models.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import top.yehot.cmm.util.mybatis.base.BaseTimeEntity;
import top.yehot.kettle.boot.enums.TaskStatusEnum;

/**
 * 任务
 * 
 * @author lquan
 * @date 2022年6月5日 上午9:22:25
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("k_task")
@ApiModel(value = "Task对象", description = "任务")
public class Task extends BaseTimeEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("任务名称")
    private String name;

    @ApiModelProperty("quartz名称")
    private String taskName;

    @ApiModelProperty("cron表达式")
    private String cron;

    @ApiModelProperty("资源库ID")
    private String repId;

    @ApiModelProperty("脚本名称")
    private String scriptName;

    @ApiModelProperty("脚本路径")
    private String scriptPath;

    @ApiModelProperty("脚本类型")
    private String scriptType;

    @ApiModelProperty("脚本日志级别")
    private String logLevel;

    @ApiModelProperty("状态")
    private TaskStatusEnum status;

    @ApiModelProperty("描述")
    private String describes;

}
